﻿
namespace Mbs.Windows
{
    public interface IWorkspaceComposer<TSmartPart> : IWorkspace
    {
        void SetActiveSmartPart(TSmartPart smartPart);
        void ForceClose(TSmartPart smartPart);
    }

    public class WorkspaceComposerAdapter<TSmartPart, TSmartPartInfo> : WorkspaceComposer<TSmartPart, TSmartPartInfo>, IWorkspaceComposer<TSmartPart>
       where TSmartPartInfo : ISmartPartInfo, new()
    {
        public WorkspaceComposerAdapter(IComposableWorkspace<TSmartPart, TSmartPartInfo> composedWorkspace)
            : base(composedWorkspace)
        {
        }
    }
}
